<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>while循环</title>
</head>

<body>

  <?php
  echo "while 循环 " . "<br>";
  $i = 1;
  while ($i < 5) {
    echo "The number is " . $i . "<br>";
    $i++;
  }
  echo  "<br>";
  ?>


  <?php
  echo "do...while 语句 " . "<br>";
  $i = 1;
  do {
    $i++;
    echo "The number is " . $i . "<br>";
  } while ($i <= 5);

  ?>

</body>

</html>